package lero.pojo;

import java.util.List;

/**
 * 作者: lero
 * 日期：2018/7/12
 */

public class Category {
    private int id;
    private String name;

    private boolean finalChildOrNot;//是否是最后一个类别

    private boolean openOrNot; //是否展开

    private Category parent; //父类

    private List<Category> children;//子类

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isFinalChildOrNot() {
        return finalChildOrNot;
    }

    public void setFinalChildOrNot(boolean finalChildOrNot) {
        this.finalChildOrNot = finalChildOrNot;
    }

    public boolean isOpenOrNot() {
        return openOrNot;
    }

    public void setOpenOrNot(boolean openOrNot) {
        this.openOrNot = openOrNot;
    }

    public Category getParent() {
        return parent;
    }

    public void setParent(Category parent) {
        this.parent = parent;
    }

    public List<Category> getChildren() {
        return children;
    }

    public void setChildren(List<Category> children) {
        this.children = children;
    }
}
